str="01#张三#20-02#李四#30-03#王五#40"
list1=str.split("-")
print(list1)
sum=0
for  i in list1:
    list2=i.split("#")
    str=list2[-1]
    sum=sum+int(str)
print(sum)